<template>
  <div class="lis-jcsj-zkbb">
    <el-form inline>
      <el-form-item label="检验仪器">
        <el-select v-model="yqid">
          <el-option
            v-for="it in yqList"
            :key="it.id"
            :label="it.yqmc"
            :value="it.id"
          ></el-option> </el-select
      ></el-form-item>
      <el-form-item>
        <el-button @click="add" type="primary" class="z-btn-start">新增</el-button>
        <el-button @click="del" type="danger">删除</el-button>
        <el-button @click="save" type="primary">保存</el-button>
        <!-- <el-button>刷新</el-button> -->
        <!-- <el-button>取消</el-button> -->
        <el-button @click="query" type="success">查询</el-button>
        <!-- <el-button>打印</el-button> -->
        <!-- <el-button>导出</el-button> -->
        <!-- <el-button>退出</el-button> -->
      </el-form-item>
    </el-form>
    <z-form-table
      ref="formTable"
      highlight-current-row
      border
      :cols="zkbbTableCols"
      :data="tableData"
      @current-change="currentRow = $event"
    ></z-form-table>
    <!-- <el-dialog v-model="addShow" title="质控标本新增筛选" width="1000" align-center>
      <v-add :yqid="yqid" @sure="sure" ref="addModule" />
    </el-dialog> -->
  </div>
</template>
<script lang="ts" setup>
import { yqList, zkbbTableCols } from '@utils'
// import vAdd from '@coms/zkbb-add/index.vue'
import { use } from './use'
defineOptions({
  name: 'lis-jcsj-zkbb'
})
const { yqid, tableData, del, currentRow, query, save, add, addShow, sure, formTable, addModule } =
  use()
</script>
<style lang="scss">
.lis-jcsj-zkbb {
  flex-basis: 0;
  flex-grow: 1;
}
</style>
